import http from '../utils/axios'

export default {
  //字典父类列表
  dictListByPage(data: any) {
    return http.request({
      url: '/dict_type/listByPage',
      method: 'post',
      data
    })
  },
  //字典子类列表
  dictDetailListByPage(data: any) {
    return http.request({
      url: '/dict_detail/listByPage',
      method: 'post',
      data
    })
  },
  //文件模板列表
  fileListByPage(data: any) {
    return http.request({
      url: '/file-template/listByPage',
      method: 'post',
      data
    })
  },
  //部门列表
  deptListByPage(data: any) {
    return http.request({
      url: '/dept/listByPage',
      method: 'post',
      data
    })
  },
  //角色列表
  roleListByPage(data: any) {
    return http.request({
      url: '/role/listByPage',
      method: 'post',
      data
    })
  },
  //用户列表
  empListByPage(data: any) {
    return http.request({
      url: '/emp/listByPage',
      method: 'post',
      data
    })
  },
  //消息模版列表
  msgTemplateListByPage(data: any) {
    return http.request({
      url: '/msg_template/listByPage',
      method: 'post',
      data
    })
  },
  //大表单列表
  unitFormfind(data: any) {
    return http.request({
      url: '/unit-form/find',
      method: 'post',
      data
    })
  },
  //小表单列表
  formFind(data: any) {
    return http.request({
      url: '/form/find',
      method: 'post',
      data
    })
  },
  //担保公司列表
  companyListByPage(data: any) {
    return http.request({
      url: '/company/listByPage',
      method: 'post',
      data
    })
  },
  //产品列表
  productListByPage(data: any) {
    return http.request({
      url: '/product/listByPage',
      method: 'post',
      data
    })
  },
  //日志列表
  changeLog(data: any) {
    return http.request({
      url: '/change_log/listByPage',
      method: 'post',
      data
    })
  },
  //机构列表
  cooperativeAgencyListByPage(data: any) {
    return http.request({
      url: '/cooperative_agency/listByPage',
      method: 'post',
      data
    })
  },
  //分支机构
  agency_branchPageBy(data: any) {
    return http.request({
      url: '/agency_branch/pageBy',
      method: 'post',
      data
    })
  },
  //额度
  agencyProjectPageBy(data: any) {
    return http.request({
      url: 'agency_project/pageBy',
      method: 'post',
      data
    })
  },
  //流程列表
  flowFind(data: any) {
    return http.request({
      url: 'flow/find',
      method: 'post',
      data
    })
  },
  //节点列表
  nodeFind(data: any) {
    return http.request({
      url: 'node/find',
      method: 'post',
      data
    })
  },
  //待办任务
  runTaskListByPage(data: any) {
    return http.request({
      url: '/run-task/find',
      method: 'post',
      data
    })
  },
  //业务管理
  businessListByPage(data: any) {
    return http.request({
      url: '/business/listByPage',
      method: 'post',
      data
    })
  },
   //业务管理-批量
   runTaskBatchPage(data: any) {
    return http.request({
      url: '/run-task/batchPage',
      method: 'post',
      data
    })
  },
    //待办管理，待推客户
    runTaskWaitingCus(data: any) {
      return http.request({
        url: '/run-task/waitingCus',
        method: 'post',
        data
      })
    },
     //待办管理，批量详情列表
     batchDetailPage(data: any) {
      return http.request({
        url: '/run-task/batchDetailPage',
        method: 'post',
        data
      })
    },
      //获取业务资料列表
      businessDataPage(data: any) {
        return http.request({
          url: '/run-task/businessDataPage',
          method: 'post',
          data
        })
      },
        //获取业务管理批量列表
        batchListByPage(data: any) {
          return http.request({
            url: '/business/batch/listByPage',
            method: 'post',
            data
          })
        },
           //获取批次详情的批次业务资料
           batchBusinessDataPage(data: any) {
            return http.request({
              url: '/run-task/batch/businessDataPage',
              method: 'post',
              data
            })
          },
}